package com.tyc.es.model;

import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @Description: java类作用描述
 * @Author: tyc
 * @CreateDate: 2021/1/7 16:19
 */
public class Product {
    //封面
    private String img;
    //商品名称
    private String name;
    //价格
    private String price;
    //店铺名称
    private String shopName;

    private String shopUrl;

    private int saleNum;

    private int commentNum;


    public Product(String img, String name, String price, String shopName, String shopUrl, int saleNum, int commentNum) {
        this.img = img;
        this.name = name;
        this.price = price;
        this.shopName = shopName;
        this.shopUrl = shopUrl;
        this.saleNum = saleNum;
        this.commentNum = commentNum;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }
}
